#!/bin/bash
#My router doesn't support ipv6 and each time I use router, I need to
#modify the file proxy.ini. I'm too lazy to do that so I wrote this 
#script
#
if [ -n $1 ]
then
    if [ ${1}1 = 'ipv61' ]
    then 
       cp -f /home/yzr/.goagent_ipv6 /home/yzr/program/goagent/local/proxy.ini 
    else
        if [ ${1}1 = 'ipv41' ]
        then
            cp -f /home/yzr/.goagent_ipv4 /home/yzr/program/goagent/local/proxy.ini 
        fi
    fi
fi
python /home/yzr/program/goagent/local/proxy.py
